package com.cqut.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ComParamMapperExtra {
	
	List<Map<String,Object>> getListByComParamName(
			@Param("comParamName")
			String comParamName,
			@Param("parentId")
			String parentId,
			@Param("start")
			int start,
			@Param("end")
			int end);
	
	Object duplicateCheckingComParamName(
			@Param("comParamName")
			String comParamName);
	
	int deleteByLikeParamComParam(
			@Param("comParamNoArray")
			String[] comParamNoArray);
	
	List<Map<String, Object>> selectComParamTablesWithLimit(
			@Param("comParamName")
			String comParamName,
			@Param("parentComParamNo")
			String parentComParamNo,
			@Param("start")
			int start,
			@Param("end")
			int end);
	
	Map<String, Object> updateComParam(
			@Param("comParamName") String comParamName,
			@Param("comParamId") String comParamId);
	
	Map<String, Object> getDetailById(
			@Param("comParamId")
			String comParamId);
	
	long getListCountByComParamName(
			@Param("parentId")
			String parentId,
			@Param("comParamName")
			String comParamName);

	List<Map<String, Object>> getComParamType(
			@Param("comParamType")
			String comParamType);

	Map<String, Object> findMaxComParamId(
			@Param("parentComParamId")
			String parentComParamId);

	long CheckComParamType(
			@Param("comParamType")
			String comParamType);
		
}
